---
title: Timeline
description: Used to display steps and progress
---

<ComponentPreview name="timeline-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add timeline
```

</TabsContent>

<TabsContent value="manual">

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="timeline" />

</TabsContent>

</Tabs>

## Usage

```tsx
import { Timeline } from "~/components/ui/timeline"
```

```tsx
<Timeline
  items={[
    {
      title: "Event #1",
      description: "This is the first event of the timeline."
    },
    {
      title: "Event #2",
      description: "This is the second event of the timeline."
    },
    {
      title: "Event #3",
      description: "This is the third event of the timeline."
    }
  ]}
  activeItem={1}
/>
```
